{% extends "INTAdminBundle::layout.html.twig" %}

{% block body %}
<div class="widget-panel">
    <div class="widget-top">
        <h4>Liste Etudients</h4>
    </div>
    <div class="widget-content module">
        <div id="etudients" class="dataTables_wrapper">
            
                      {% include 'INTUserBundle:Default:list_etudients.html.twig' %}

                    
            </div>
        </div>
        <script>
          
            function supprimerEtudient(etudient_id){
             
                    $.ajax({
                        url: '{{path('int_supprimer_user')}}',
                        data: 'id='+etudient_id,
                        success: function(response){
                    $('#etudients').html(response)
                   
                        }
                    })
               
            }
             function modifierEtudient(etudient_id,rang){
             
                    $.ajax({
                        url: '{{path('int_edit_user')}}',
                        data: 'id='+etudient_id,
                        success: function(response){
                    $('#etudients').html(response)
                   
                        }
                    })
               
            }
            </script>
{% endblock %}